package yecq_pcbtree;

public class Main {

    public static void main(String[] args) {
        PcbInfoReader reader = new PcbInfoReader();

        String dir = "/proc";
        String[] files = reader.readNumericDir(dir);
        for (String file : files) {
            System.out.println("\t" + file);
        }

        PcbInfo info = new PcbInfoReader().readProcessInfoFromFile("/proc/2/status");
        System.out.println("name:" + info.getName() + ", pid:" + info.getPid() + ", ppid:" + info.getPpid());
    }
}
